package com.such.kit.web.jwt.bean;

import org.jose4j.jwt.JwtClaims;

/**
 * @author SUCH
 * <pre>
 * JWT 载荷存储器
 * 提供在全局访问的快捷通道
 * </pre>
 */
public class PayloadStorer {

	private static final ThreadLocal<JwtClaims> payload = new ThreadLocal<JwtClaims>();

	public static JwtClaims getPayload() {
		return payload.get();
	}

	public static void setPayload(JwtClaims claims) {
		payload.set(claims);
	}

}
